import axios from 'axios'
import Vue from 'vue'

const request=()=>{
  axios.defaults.baseURL="http://www.ysqorz.top:8888/api/private/v1/"
  axios.interceptors.request.use(config =>{
    config.headers.Authorization = window.sessionStorage.getItem('token')
    return config
  })

  Vue.prototype.$http=axios
  
}

export default request
